package com.ssqdx.demo3;

/**
 * @author asus
 * @date 2021/6/8 09:27:48
 * @description
 */
public class Client {
    public static void main(String[] args) {

        //真实角色
        Host host = new Host();


        //代理角色
        ProxyInvocationHandler pih = new ProxyInvocationHandler();
        pih.setRent(host);
        Rent proxy =(Rent)pih.getProxy();
        proxy.rent();

    }
}
